const state = {
  isCollapse: false,
  menuList: [
    { path: '/home', name: 'home', label: '首页' },
    { path: '/user', name: 'user', label: '用户管理' },
    {
      label: '生产数据',
      children: [
        {
          path: '/truck',
          name: 'truck',
          label: '卡车信息',
        },
        {
          path: '/shovel',
          name: 'shovel',
          label: '铲车信息',
        },
        {
          path: '/asl',
          name: 'Asl',
          label: '测试',
        },
      ],
    },
  ],
};

const mutations = {
  setisCollapse(state) {
    state.isCollapse = !state.isCollapse;
  },
  SET_MENULIST: (state, data) => {},
};

export default {
  namespaced: true,
  state,
  mutations,
};
